import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var DetailFormComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(DetailFormComponentViewmodelForm, _super);
    function DetailFormComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'htbh_3230a3d7_42k3',
            name: "{{htbh_3230a3d7_42k3}}",
            binding: 'htbh',
            updateOn: 'blur',
            defaultI18nValue: '合同编号',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "htbh", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'htlx_ba50cd6e_5t9g',
            name: "{{htlx_ba50cd6e_5t9g}}",
            binding: 'htlx',
            updateOn: 'blur',
            defaultI18nValue: '合同类型',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "htlx", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'htsj_c04721ad_qyz1',
            name: "{{htsj_c04721ad_qyz1}}",
            binding: 'htsj',
            updateOn: 'blur',
            defaultI18nValue: '合同时间',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "htsj", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'bz_1f3d7a8d_i590',
            name: "{{bz_1f3d7a8d_i590}}",
            binding: 'bz',
            updateOn: 'blur',
            defaultI18nValue: '备注',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "bz", void 0);
    DetailFormComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '合同信息',
            enableValidate: true
        }),
        Injectable()
    ], DetailFormComponentViewmodelForm);
    return DetailFormComponentViewmodelForm;
}(Form));
export { DetailFormComponentViewmodelForm };
